C: Warm-up GOTOs
- Modify the source code in the
support/bogosort/bogosort.c
file, by replacing thebreak
instruction with agoto
instruction (Bogosort). - Similarly, replace the
continue
instruction insupport/ignore_the_comments/ignore_the_comments.c
with agoto
instruction without changing the functionality of the code.
WARNING: When writing code with labels, please adhere to the following indentation recommendations:
- Do not indent labels. Keep them aligned with the left margin of the editing screen.
- Each label should be on its own line. There is no code on the same line as the label.
- Do not take labels into consideration when indenting the code. The code should be indented in the same way whether there are labels or not.
- Leave a blank line before the line containing a label.
NOTE: Situation where
goto
may be useful.
If you're having difficulties solving this exercise, go through this reading material.